1
2
pip install --upgrade pip
pip install shadowsocks

fast_open未启用

1
echo 3 > /proc/sys/net/ipv4/tcp_fastopen
1
2
3
4
5
6
7
8
9
10
11
12
vim /etc/shadowsocks.json

{
"server":"",
"server_port":,
"local_address": "127.0.0.1",
"local_port":1027,
"password":"",
"timeout":300,
"method":"rc4-md5",
"workers": 1
}
1
nohup sslocal -c /etc/shadowsocks.json /dev/null 2>&1 &
1
curl --socks5 127.0.0.1:1027 http://httpbin.org/ip
1
yum install -y privoxy
1
2
3
4
vim /etc/privoxy/config

listen-address 127.0.0.1:1087
forward-socks5t / 127.0.0.1:1027 .
1
2
3
4
systemctl enable privoxy.service
systemctl start privoxy.service
systemctl status privoxy.service
systemctl restart privoxy.service
1
2
3
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;

curl http://httpbin.org/ip

参考

CentOS 7 安装 shadowsocks 客户端

×

纯属好玩

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

文章目录
  1. 1. 参考
,